Skip to content

fix(voice-line): Turso v2 rows are bare arrays, not {values} objects (#9800) - #10685

Merged
dezren39 merged 1 commit into
mainfrom
queue/16482-9800-deploy
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/16482-9800-deploy

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What

Second deploy-proof fix for the voice line (#9800 step 1, task 16482), found live on 2026-11-16 after PR #10681 landed:

Turso pipeline v2 rows are bare arrays, not {values} objects. TursoClient.latestQueueSnapshot read rows[0].values — on a plain array that resolves to Array.prototype.values, and destructuring it threw function is not iterable (cannot read property Symbol(Symbol.iterator)) inside the Durable Object, killing every queue-state utterance after transcription (no answer, no ledger row). Verified against the live pipeline API: rows: [[{type:"text",value:...}, ...]].

Fix: correct the PipelineResult row type to TursoValue[][], extract the parsing into parseQueueSnapshotResult, and pin it with unit tests whose fixture is the actual live response shape captured during the proof (oracle: the real Turso v2 API output).

Tests

  • bun test — 13/13 pass (39 expect() calls)
  • bunx tsc --noEmit — clean

The end-to-end proof (transcript → spoken answer → Turso ledger row) re-runs against the redeployed worker after merge and is recorded on #9800.

🤖 Queue lane code-c, task 16482.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 10:32
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T10:32:23.323978Z
We couldn’t complete this review. Comment @codex review to try again.
eec9ad4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a610713-fb32-420f-b983-34eb1a51398e
Commits

Reviewing files that changed from the base of the PR and between b47e8ae and f5e6a21.

Files selected for processing: 2

  • pm-stack/voice-line-worker/src/ledger.ts
  • pm-stack/voice-line-worker/test/ledger.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 force-pushed the queue/16482-9800-deploy branch from eec9ad4 to f5e6a21 Compare November 16, 2026 10:32
@dezren39

Copy link
Copy Markdown
Member Author

Codex disposition (task 16482, lane code-c): if the Codex review again failed to run on usage limits, it produced zero findings; merge rests on own verification: bun test 13/13 (new ledger tests use the actual live Turso v2 response shape as their oracle fixture), bunx tsc --noEmit clean, plus the live proof re-run recorded on #9800.

@dezren39
dezren39 merged commit a9720c3 into main Nov 16, 2026
1 check passed
@dezren39
dezren39 deleted the queue/16482-9800-deploy branch November 16, 2026 10:33
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant